package com.shuguoyiyou.wechatofficialaccount.provider;

import com.shuguoyiyou.wechatofficialaccount.entity.form.UserOpenIdForm;
import com.shuguoyiyou.wechatofficialaccount.entity.po.User;
import com.springboot.cloud.common.core.entity.vo.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by ZengJian on 2021/2/3 0003 上午 9:22
 */
@Component
@Slf4j
public class ResourceProviderFallback implements ResourceProvider {


    @Override
    public Result updateOpenId(UserOpenIdForm userOpenIdForm) {
        log.error("认证服务启动时加载资源异常！未加载到资源");
        return Result.fail();
    }

    @Override
    public String getUserByOpenId(String openId) {
        log.error("认证服务启动时加载资源异常！未加载到资源");
        return "服务降级";
    }

}
